<div id="wrap">
	<div id="header">
		<div class="logo">
			<h1><a href="<?php echo RW(0)?>"><?php echo $_HS['title']?></a></h1>
		</div>
		<div class="gnb">
			<ul>
			<li><a href="<?php echo RW(0)?>">HOME</a></li>
			<?php if($my['id']):?>
			<li><a href="<?php echo RW('mod=mypage')?>">마이페이지</a></li>
			<li><a href="<?php echo $g['s']?>/?r=<?php echo $r?>&amp;mod=mypage&amp;page=info">정보수정</a></li>
			<li><a href="<?php echo $g['s']?>/?r=<?php echo $r?>&amp;a=logout">로그아웃</a></li>
			<?php if($my['admin']):?><li class="admin"><a href="<?php echo $g['s']?>/?r=<?php echo $r?>&amp;m=admin&amp;module=filemanager&amp;front=main&amp;pwd=<?php echo $g['path_layout'].$d['layout']['dir']?>/&amp;type=php&amp;iframe=Y&amp;editmode=Y&amp;file=_main.php" target="_blank">레이아웃환경</a></li><?php endif?>
			<?php else:?>
			<li><a href="<?php echo RW('mod=mypage')?>">마이페이지</a></li>
			<li><a href="<?php echo RW('mod=join')?>">회원가입</a></li>
			<li><a href="<?php echo RW('mod=login')?>">로그인</a></li>
			<?php endif?>
			</ul>
		</div>
		<div style="clear:both;"></div>
	</div>
	<div id="container">
		<?php include __KIMS_CONTAINER_HEAD__?>
		<div class="snb">
			
		<?php foreach($d['layout']['show'] as $_pluginkey => $_pluginval):if(!$_pluginval)continue?>
		<?php include $g['path_layout'].$d['layout']['dir'].'/plugin/'.$_pluginkey.'.php'?>
		<div class="plugingap"></div>
		<?php endforeach?>

		</div>
		<div id="content">
			<?php include __KIMS_CONTENT__?>
		</div>
		<div class="clear"></div>
	</div>
	<?php include __KIMS_CONTAINER_FOOT__?>
	<div id="footer">
		<div>
		<a href="<?php echo RW('mod=agreement')?>">홈페이지 이용약관</a> <span class="split">|</span>
		<a href="<?php echo RW('mod=private')?>">개인정보 취급방침</a> <span class="split">|</span>
		<a href="<?php echo RW('mod=postrule')?>">게시물 게재원칙</a> <span class="split">|</span>
		<a href="http://validator.w3.org/check?url=referer" target="_blank" title="W3C XHTML 1.0 VALIDATION">XHTML 1.0 VALIDATION</a>
		</div>
		<address>
		Copyrights © <?php echo $date['year']?> <?php echo $_SERVER['HTTP_HOST']?> All Rights Reserved. Powered by kimsQ-RB (Excute Time <?php echo round(getNowTimes()-$g['time_start'],3)?>)
		</address>
	</div>
</div>
